q = [['a', 'b', 'c'], ['d', 'e', 'f'], ['g', 'h']]

print("3.1")
print(q[0][0])  # 根据下标取值
print("------------------")
print("3.2")
print(q[1])  # 根据下标取值
print("------------------")
print("3.3")
print(q[2][1])  # 根据下标取值
print(q[1][0])  # 根据下标取值
print("------------------")
print("3.4")
for i in range(0, len(q)):  # for循环遍历寻找“e”
    for j in range(0, len(q[i])):
        if q[i][j] == 'e':
            print(i, j)  # 输出其下标
